package site.beanyon.now.model.po;

import java.util.Date;

/**
 * 时间卡片持久化描述类
 */
public class TimeCardPO {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 活动名称
     */
    private String activity;

    /**
     * 所属用户id
     */
    private Integer userId;

    /**
     * 创建时间
     */
    private Date createdAt;

    public TimeCardPO() {
    }

    public TimeCardPO(String activity, Integer userId) {
        this.activity = activity;
        this.userId = userId;
    }

    public TimeCardPO(Integer id, String activity, Integer userId, Date createdAt) {
        this.id = id;
        this.activity = activity;
        this.userId = userId;
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActivity() {
        return activity;
    }

    public void setActivity(String activity) {
        this.activity = activity;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "TimeCardPO{" +
                "id=" + id +
                ", activity='" + activity + '\'' +
                ", userId='" + userId + '\'' +
                ", createdAt=" + createdAt +
                '}';
    }
}
